import React, { Component } from 'react'
//引入路由
import {HashRouter as Router, Route}  from "react-router-dom"
import Index from "./components/index/Index"
import CodeIndex from './components/codeIndex/codeIndex'
import InputForm from './components/inputForm/inputForm'
import Canvas from './components/canvas/canvas'
import Welfare from './components/welfare/welfare'
import SubSuccess from './components/subsuccess/subsuccess'
import OrderInformation from './components/orderInformation/orderInformation'
import CouponGuide from './components/CouponGuide/couponGuide'
import OnlineService from './components/onlineService/onlineService'
import OnlineSystemService from './components/onlineSystemService/onlineSystemService'
import Register from './components/register/register'
import Progresss from './components/progress/progresss'
import TableList from './components/tableList/tableList'
import Login from './components/login/Index'
import My from './components/my/index'
import Integral from './components/integral/index'
import MyInformation from './components/myinformation/index' 
import Contactus from './components/contactus/index'
import Start from './components/start/index'
import ExchangeRecord from './components/exchangerecord/index'
import IntegralDetailed from './components/integraldetailed/index'
import Explain from './components/explain/index'
import Timplate from './components/template/index'
import Navigator from './components/navigator/index'
import GoodsIntegral from './components/goodsIntegral/index'
import Community from './components/community/index'
import CommunityPosts from './components/communityPosts/index'
import CommunityDetail from './components/communityDetail/index'
export default class RouterConfig extends Component {
    render() {
        return (
            <div>
                <Router>
                    <Route path="/" exact render={()=><Start></Start>}></Route>
                    {/* 登陆 */}
                    <Route path="/login" exact render={()=><Login></Login>}></Route>
                    {/* 个人中心 */}
                    <Route path="/my" exact render={()=><My></My>}></Route>
                    {/* 积分 */}
                    <Route path="/integral" exact render={()=><Integral></Integral>}></Route>
                    {/* 我的信息 */}
                    <Route path="/myinformation" exact render={()=><MyInformation></MyInformation>}></Route>
                    {/* 优惠券 */}
                    <Route path="/exchangerecord" exact render={()=><ExchangeRecord></ExchangeRecord>}></Route>
                    <Route path="/integraldetailed" exact render={()=><IntegralDetailed></IntegralDetailed>}></Route>
                    <Route path="/goodsIntegral" exact render={()=><GoodsIntegral></GoodsIntegral>}></Route>
                    <Route path="/community" exact render={()=><Community></Community>}></Route>
                    <Route path="/communityPosts" exact render={()=><CommunityPosts></CommunityPosts>}></Route>
                    <Route path="/communityDetail" exact render={()=><CommunityDetail></CommunityDetail>}></Route>
                    <Route path="/contactus" exact render={()=><Contactus></Contactus>}></Route>
                    <Route path="/start" exact render={()=><Start></Start>}></Route>
                    <Route path="/explain" exact render={()=><Explain></Explain>}></Route>
                    <Route path="/inputForm" exact render={()=><InputForm></InputForm>}></Route>
                    <Route path="/canvas" exact render={()=><Canvas></Canvas>}></Route>
                    <Route path="/welfare" exact render={()=><Welfare></Welfare>}></Route>
                    <Route path="/codeIndex" exact render={()=><CodeIndex></CodeIndex>}></Route>
                    <Route path="/subsuccess" exact render={()=><SubSuccess></SubSuccess>}></Route>
                    <Route path="/onlineSystemService" exact render={()=><OnlineSystemService></OnlineSystemService>}></Route>
                    <Route path="/orderInformation" exact render={()=><OrderInformation></OrderInformation>}></Route>
                    <Route path="/couponGuide" exact render={()=><CouponGuide></CouponGuide>}></Route>
                    <Route path="/onlineService" exact render={()=><OnlineService></OnlineService>}></Route>
                    <Route path="/register" exact render={()=><Register></Register>}></Route>
                    <Route path="/progresss" exact render={()=><Progresss></Progresss>}></Route>
                    <Route path="/tableList" exact render={()=><TableList></TableList>}></Route>
                    <Route path="/timplate" exact render={()=><Timplate></Timplate>}></Route>
                    <Route path="/navigator" exact render={()=><Navigator></Navigator>}></Route>
                </Router>
            </div>
        )
    }
}
